package com.lzy.mall.common.constant;

/**
 * @author lzy
 * @date 2021/10/11 13:52
 */
public class MQConstant {
    /**
     * RabbitMQ
     */
    public static final String orderReleaseQueue = "order.release.order.queue";
    public static final String orderDelayQueue = "order.delay.queue";
    public static final String orderEventExchange = "order-event-exchange";
    public static final String orderReleaseRK = "order.release.order";
    public static final String orderCreateRK = "order.create.order";
    public static final String orderReleaseOtherRK = "order.release.other";
    //属性
    public static final String XDLExchange = "x-dead-letter-exchange";
    public static final String XDLRK = "x-dead-letter-routing-key";
    public static final String XMTTL = "x-message-ttl";
    public static final Long XMTTL_TIME = 60000L;

    /**
     * 库存
     */
    public static final String stockEventExchange = "stock-event-exchange";
    public static final String stockReleaseQueue = "stock.release.stock.queue";
    public static final String stockReleaseRK = "stock.release";
    public static final String stockDelayQueue = "stock.delay.queue";
    public static final String stockLockRK = "stock.locked";

    /**
     * 秒杀
     */
    public static final String orderSeckillReleaseQueue = "order.seckill.order.queue";
    public static final String orderSeckillRK = "order.seckill.order";
}
